import base from '@/api/baseurl';
import request from '@/utils/request'



//查询所有信息
/**
 * 查询ftp利率信息
 * @param {*} query 
 * @returns 
 */
export function findtransfercurvetest(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/ftpInterestRate/findftpInterestRate',
    method: 'get',
    params: query
  })
}

/**
 * 导出ftp利率
 * @param {*} query 
 * @returns 
 */
export function findtransfercurvederive(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/ftpInterestRate/deriveftpInterestRate',
    method: 'get',
    params: query
  })
}

/**
 * 币种下拉框
 * @param {*} query 
 * @returns 
 */
export function fetchListcurr(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/Transfercurve/findoneTransfercurvecurr',
    method: 'get',
    params: query
  })
}

/**
 * 曲线下拉框
 * @param {*} query 
 * @returns 
 */
export function fetchListtsall(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/TCGarithmeticMean/findtsall',
    method: 'get',
    params: query
  })
}
/**
 * 期限下拉框
 * @param {*} query 
 * @returns 
 */
export function fetchListtermcode(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/ftpInterestRate/findterm',
    method: 'get',
    params: query
  })
}


